function setBotId(pv_botName) {
	switch(pv_botName) {
		case '[bot name]':
			returnVal={
				name:		'[bot name]',
				authid:		'[bot auth id]',
				userid:		'[bot user id]',
				roomid:		'[room id]',
				admin:		'[admin id for bot admin(s); comma-delimited]',
				chatlog:    true,   //log all public chat activity to the console
                reqbotname:	false,	//require bot name to accept public chat commands
        		vote:		true,	//allow bot to awesome songs
				slide:		true,	//slide
				slidecount:	1,		//default song limit for slide
				djq:		true,	//dj queue
                autosnag:   false,   //auto-snag song if #% awesome it, snagpct must also be populated
                snagpct:    85,     //% listeners required to awesome song to autosnag, autosnag must = true
				battle:		true,	//battle
				greet:	    false,	//greet djs as they enter the room
                greetloc:   "chat", //where to display the greeting:  chat|pm|both
				defaultgreet:	    "Welcome!",	//default greeting                
				lottery:	true,	//powerball megamillions lotto
				theme:		true,	//themeset
				themes:		[		//array of available room themes
								'Play anything, but keep it clean.',
                                'Songs referencing a color or texture.'
							],
				defaulttheme:	0,	//specify default room theme by array position
				follow:		true,	//move bot to new room
				songstats:	true,	//announce songstats
				echo:		true,	//echo to public chat
				djoverride:	true,	//prevent bot from auto-djing
				avatar:		true,	//change bot avatar
				rps:		true,	//rock|paper|scissors|lizard|spock
				coinflip:	true,	//coinflip|flip
				eightball:	true,	//magic 8ball
				fortune:	true	//random fortune reading
			}
			break;
		default:	//no default setting - no graceful crash
			returnVal={
				error:		'invalidBotName',
				errorMsg:	'ERROR: No bot name provided, or invalid bot name.'
			}
	}
	return(returnVal);
}

function botConfig(pv_botName,pv_roomName) {
	var botInfo=setBotId(pv_botName);
	
	if(botInfo.error) {
		console.log('\n'+botInfo.errorMsg);
		returnVal={
			error:		botInfo.error,
			errorMsg:	botInfo.errorMsg
		}
	} else {
	    returnVal={
			cmdname:    pv_botName,         //bot name as passed via init param; used when reqbotname=true
			auth:       botInfo.authid,		//bot auth id (security key/secret)
			userid:     botInfo.userid,		//bot id
			roomid:     botInfo.roomid,		//room id
			name:		botInfo.name,		//bot name
			admin:   	botInfo.admin,		//bot admin
			chatlog:    botInfo.chatlog,    //log all public chat activity to the console
			reqbotname:	botInfo.reqbotname,	//require bot name to accept public chat commands
			vote:		botInfo.vote,		//allow bot to awesome songs
    	    slide:		botInfo.slide,		//slide
			slidecount:	botInfo.slidecount,	//default song limit for slide
			djq:		botInfo.djq,		//dj queue
            autosnag:   botInfo.autosnag,   //auto-snag song if #% awesome it, snagpct must also be populated
            snagpct:    botInfo.snagpct,    //% listeners required to awesome song to autosnag, autosnag must = true
			battle:		botInfo.battle,		//battle
			lottery:	botInfo.lottery,	//powerball megamillions lotto
			greet:		botInfo.greet,		//greet djs as they enter the room
            greetloc:   botInfo.greetloc,   //where to display the greeting:  chat|pm|both
			defaultgreet:	 botInfo.defaultgreet,	//default greeting            
			theme:		botInfo.theme,		//themeset
			themes:		botInfo.themes,		//array of available room themes
			defaulttheme:	botInfo.defaulttheme, //specify default room theme by array position
			follow:		botInfo.follow,		//move bot to new room
			songstats:	botInfo.songstats,	//announce songstats
			echo:		botInfo.echo,		//echo to public chat
			djoverride:	botInfo.djoverride,	//prevent bot from auto-djing
			avatar:		botInfo.avatar,		//change bot avatar
			rps:		botInfo.rps,		//rock|paper|scissors|lizard|spock
			coinflip:	botInfo.coinflip,	//coinflip|flip
			eightball:	botInfo.eightball,	//magic 8ball
			fortune:	botInfo.fortune		//random fortune reading
	    };
    }
    return(returnVal);
}

module.exports.botConfig=botConfig;